#ifndef OutStreamImpl_H
#define OutStreamImpl_H

#include "common_types.h"
#include "jni_api.h"

class OutStreamImpl : public webrtc::OutStream, public JniCallbackGlobalNew
{
public:
	OutStreamImpl(void);
	~OutStreamImpl(void);

protected:	//JniCallbackBase
	virtual bool init_jni(JNIEnv* env);

public:
	virtual bool Write(const void *buf,int len);
	virtual int Rewind();

protected:
	jmethodID m_mid_Write;
	jmethodID m_mid_Rewind;
};

#endif //!OutStreamImpl_H

